/**
 * 
 */
package travibot.model;

import java.util.HashMap;
import java.util.Map;

/**
 * This class server as representation of the village stock.
 * 
 * @author Petr Macek
 * 
 */
public class Stock {

    private Map<Material, Integer> stock = new HashMap<Material, Integer>();

    private Map<Material, Integer> stockCapacity = new HashMap<Material, Integer>();

    public void setCapacity(Material material, Integer amount) {

        stockCapacity.put(material, amount);
    }

    public int getCapacity(Material material) {

        return stockCapacity.get(material);
    }

    public void setStock(Material material, Integer amount) {

        stock.put(material, amount);
    }

    public int getStock(Material material) {

        return stock.get(material);
    }

}
